package lab04.test02;

public class HelloWorldRunnable implements Runnable {

    @Override
    public void run() {

        while (true) {

            //每隔2秒向控制台输出"1234567890"
            System.out.println("1234567890");

            try {
                Thread.sleep(2000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
